package org.jeecg.modules.xxgx.sjtb.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.apiacl.controller.ApiAuthorizeController;
import org.jeecg.modules.xxgx.sjtb.service.ISjtbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 销项接口管理: 数电票相关
 * @Author: jeecg-boot
 * @Date: 2023-08-02
 * @Version: V1.0
 */
@ApiSort(value = 2)
@Api(tags = "同步发票信息")
@RestController
@RequestMapping("/xxgx/fpsjtb")
@Slf4j
public class FpSjtbController extends ApiAuthorizeController {

    @Autowired
    private ISjtbService iSjtbService;

    @AutoLog(value = "同步发票信息")
    @ApiOperation(value = "同步发票信息", notes = "同步发票信息-同步发票信息",position = 1)
    @GetMapping(value = "/tbfpxx")
    public Result<String> tbfpxx(@RequestParam(name = "fphm") String fphm) {
        iSjtbService.tbfpxx(fphm);
        return Result.OK("");
    }
}
